package org.github.manx98.jlibhac.fssystem;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 15:36
 */
public enum NcaContentType {
    Program,
    Meta,
    Control,
    Manual,
    Data,
    PublicData;

    public static NcaContentType valueOf(byte value) {
        for (NcaContentType ncaContentType : values()) {
            if (ncaContentType.ordinal() == value) {
                return ncaContentType;
            }
        }
        throw new IllegalArgumentException("Unknown content type: " + value);
    }
}
